package cn.livingCloud.repository;

import cn.livingCloud.entity.content.Button;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by sujiantang on 2016/1/6.
 */
@Repository
public interface ButtonMapper {
    void save(Button button);

    Button findButtonByUuid(String uuid);

    List<Button> findButtonList();

    List<Button> findAllSubButton(String parentId);

    void update(Button button);

    void deleteSubButton(String parentId);

    void delete(String uuid);

    int countButton();

    int countSubButton(String parentId);

    List<Button> findAllButtonList();
}
